package com.brkj.main;

import net.tsz.afinal.annotation.view.ViewInject;
import android.os.Bundle;
import android.widget.Button;
import android.widget.EditText;

import com.brkj.main.R;
import com.brkj.util.view.BaseActivity;

public class RegistAcivity extends BaseActivity{

	@ViewInject(id=R.id.userName) EditText userName;
	@ViewInject(id=R.id.password_1) EditText password_1;
	@ViewInject(id=R.id.password_2) EditText password_2;
	@ViewInject(id=R.id.regist, click="registClick") Button regist;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		setAnimType(BaseActivity.RIGHT_ENTER_LEFT_EXT);
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.regist_account);
		
		setReturnBtn();
		
	}

//	public void registClick(View v){
//		BaseAjaxParams params = new BaseAjaxParams();
//		  params.put(HttpInterface.REGIST_NEW_ACCOUNT_PARAMS[0], "dgl");
//		  params.put(HttpInterface.REGIST_NEW_ACCOUNT_PARAMS[1], "1234");
//		  params.put(HttpInterface.REGIST_NEW_ACCOUNT_PARAMS[2], "丁高林");
//		  params.put(HttpInterface.REGIST_NEW_ACCOUNT_PARAMS[3], "1234567890");
//
//		  FinalHttp fh = new FinalHttp();
//		  fh.post(HttpInterface.REGIST_NEW_ACCOUNT, params, new MyAjaxCallBack<Object>(){
//
//				@Override
//				public void onSuccess(Object t) {
//					// TODO Auto-generated method stub
//					showToast( "post fail!" + (String)t);
//					progressDialog.dismiss();
//					
//				}
//
//				@Override
//				public void onFailure(Throwable t, int errorNo, String strMsg) {
//					// TODO Auto-generated method stub
//					showToast( "post fail!");
//				}
//
//				@Override
//				public void onStart() {
//					progressDialog.show();
//					
//				}
//		        
//		  });
//	}
}
